package com.qzxy.premiumhotelsystem.domain.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @TableName admin
 */
@TableName(value ="admin")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Admin implements Serializable {

    @TableId
    @ExcelProperty("用户编号")
    private Integer id;
    @ExcelProperty("用户账号")
    @NotBlank(message = "用户账号不为空")
    private String username;
    @ExcelProperty("用户密码")
    @NotBlank(message = "用户密码不为空")
    private String password;
    @ExcelProperty("GiteeID")
    private String giteeid;

    private static final long serialVersionUID = 1L;
}